package com.longma.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author HAIBO
 * @date 2021-05-09 16:18
 * @description 普通用户密码修改
 */
@Data
public class SysUserPasswordUpdateDTO {
    @NotBlank(message = "原始密码不能为空")
    @ApiModelProperty(value = "原始密码",example = "123456cc@")
    private String oldPassword;
    
    @ApiModelProperty(value = "新密码",example = "123456cc@")
    @NotBlank(message = "密码不能为空")
    @Length(max = 18,message = "密码最长为18个字符")
    private String newPassword;
}
